package demo2;

public class Test {
    public static void drawMap(Shape shape){
        shape.draw();
    }
    public static void main(String[] args) {
        drawMap(new Cycle());

        Rect rect = new Rect();
        drawMap(rect);
    }
}
